package com.xinzhi.yjyz.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import com.xinzhi.entity.Keeper;
import com.xinzhi.yjyz.mapper.KeeperMapper;
import com.xinzhi.yjyz.service.IKeeprtService;
import lombok.RequiredArgsConstructor;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
@RequiredArgsConstructor
public class KeeperServiceImpl extends ServiceImpl<KeeperMapper, Keeper> implements IKeeprtService {
    @Resource
    private KeeperMapper keeperMapper;

    @Override
    public List findAll() {
        return keeperMapper.selectList(null);
    }

    @Override
    public boolean addKeeper(Keeper keeper) {

        return true;
    }

}
